package com.huang.auth.integration;

import com.huang.auth.client.AuthTokenClient;
import com.huang.base.AbstractIntegrationFactoryBean;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author HuangShen
 * @Date 2022/3/4 16:49
 * @Describe
 */
@Component(value = AuthTokenIntegration.BEAN_NAME)
public class AuthTokenIntegration extends AbstractIntegrationFactoryBean<AuthTokenClient> {

    public static final String BEAN_NAME = "authTokenIntegration";


    @Resource
    private AuthTokenClient authTokenClient;
    @Override
    protected AuthTokenClient getTarget() {
        return authTokenClient;
    }
    @Override
    protected Class<AuthTokenClient> getTargetClass() {
        return AuthTokenClient.class;
    }
}
